.class final Lcom/esfile/screen/recorder/videos/edit/i$a;
.super Ljava/lang/Object;
.source "VideoEditHelper.java"

# interfaces
.implements Lcom/esfile/screen/recorder/media/a$g;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/content/Context;Ljava/lang/String;Les/cd;Lcom/esfile/screen/recorder/videos/edit/l;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/edit/i$b;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/videos/edit/i$b;

.field final synthetic b:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

.field final synthetic c:Landroid/content/Context;

.field final synthetic d:Ljava/lang/String;

.field final synthetic e:Les/cd;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/videos/edit/i$b;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Landroid/content/Context;Ljava/lang/String;Les/cd;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->a:Lcom/esfile/screen/recorder/videos/edit/i$b;

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->b:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    iput-object p3, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->c:Landroid/content/Context;

    iput-object p4, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->d:Ljava/lang/String;

    iput-object p5, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->b:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    .line 18
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    .line 19
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->a:Lcom/esfile/screen/recorder/videos/edit/i$b;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/i;->c(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method

.method public a(I)V
    .locals 1

    .line 29
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->b:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    .line 30
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setProgress(I)V

    .line 31
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->a:Lcom/esfile/screen/recorder/videos/edit/i$b;

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Lcom/esfile/screen/recorder/videos/edit/i$b;I)V

    return-void
.end method

.method public a(Ljava/lang/Exception;)V
    .locals 5

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->b:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    .line 21
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    .line 22
    :cond_0
    instance-of p1, p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$OutOfSpaceException;

    if-eqz p1, :cond_1

    .line 23
    sget p1, Les/z4;->durec_cut_video_no_space:I

    invoke-static {p1}, Les/ec;->a(I)V

    goto :goto_0

    .line 24
    :cond_1
    sget p1, Les/z4;->durec_common_video_fail:I

    invoke-static {p1}, Les/ec;->a(I)V

    .line 25
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    if-eqz p1, :cond_2

    iget-boolean v0, p1, Les/cd$a;->a:Z

    if-eqz v0, :cond_2

    iget-wide v0, p1, Les/cd$a;->b:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_2

    iget-object p1, p1, Les/cd$a;->c:Ljava/lang/String;

    .line 26
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_2

    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    iget-object p1, p1, Les/cd$a;->d:Ljava/lang/String;

    .line 27
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    .line 28
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->a:Lcom/esfile/screen/recorder/videos/edit/i$b;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/i;->c(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method

.method public a(Ljava/lang/String;J)V
    .locals 5

    .line 1
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->b:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz p2, :cond_0

    .line 2
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    .line 3
    :cond_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->c:Landroid/content/Context;

    iget-object p3, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->d:Ljava/lang/String;

    invoke-static {p2, p3, p1}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    iget-object p2, p2, Les/cd;->j:Les/cd$u;

    const/4 p3, 0x0

    const/4 v0, 0x1

    if-eqz p2, :cond_1

    iget-boolean p2, p2, Les/cd$u;->a:Z

    if-nez p2, :cond_2

    :cond_1
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->d:Ljava/lang/String;

    .line 5
    invoke-static {p2}, Les/nb;->b(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_3

    :cond_2
    const/4 p2, 0x1

    goto :goto_0

    :cond_3
    const/4 p2, 0x0

    .line 6
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->c:Landroid/content/Context;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    invoke-static {v1, p1, v2, p2}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/content/Context;Ljava/lang/String;Les/cd;Z)V

    .line 7
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->c:Landroid/content/Context;

    instance-of v2, v1, Landroid/app/Activity;

    if-eqz v2, :cond_8

    .line 8
    check-cast v1, Landroid/app/Activity;

    .line 9
    invoke-virtual {v1}, Landroid/app/Activity;->isDestroyed()Z

    move-result v2

    if-nez v2, :cond_8

    .line 10
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->c:Landroid/content/Context;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget v4, Les/z4;->sender_default_path:I

    invoke-virtual {v1, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Les/ec;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    iget-object v2, v2, Les/cd;->m:Les/cd$a;

    if-eqz v2, :cond_4

    iget-boolean v2, v2, Les/cd$a;->a:Z

    if-eqz v2, :cond_4

    const/4 v2, 0x1

    goto :goto_1

    :cond_4
    const/4 v2, 0x0

    .line 12
    :goto_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    iget-object v3, v3, Les/cd;->m:Les/cd$a;

    if-eqz v3, :cond_5

    iget-boolean v3, v3, Les/cd$a;->a:Z

    if-eqz v3, :cond_5

    const/4 p3, 0x1

    :cond_5
    if-eqz v2, :cond_6

    .line 13
    iget-object p3, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    invoke-static {v1, p1, p3, p2}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V

    goto :goto_2

    :cond_6
    if-eqz p3, :cond_7

    .line 14
    iget-object p3, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->e:Les/cd;

    invoke-static {v1, p1, p3, p2}, Lcom/esfile/screen/recorder/videos/edit/i;->b(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V

    goto :goto_2

    .line 15
    :cond_7
    iget-object p3, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->c:Landroid/content/Context;

    invoke-static {p3, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/DuVideoEditResultActivity;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 16
    :goto_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->a:Lcom/esfile/screen/recorder/videos/edit/i$b;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/i;->b(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    :cond_8
    return-void
.end method

.method public b()V
    .locals 1

    .line 1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/i$a;->a:Lcom/esfile/screen/recorder/videos/edit/i$b;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method
